﻿''' <summary>
''' Oracl provider
''' </summary>
''' <remarks></remarks>
Public Class OracleProvider
    Implements IExecutionProvider

#Region " IExecutionProvider"
    Public Sub Initialize(ByVal project As ScriptProject, ByVal connectionString As String) Implements IExecutionProvider.Initialize
        Throw New NotImplementedException()
    End Sub

    Public Function Execute(ByVal scriptItem As ScriptItem) As ScriptExecutionResult Implements IExecutionProvider.Execute
        Throw New NotImplementedException()
    End Function
#End Region

#Region " IDisposable Support "
    ''' <summary>
    ''' Checks to see if this object is already disposed
    ''' </summary>
    ''' <remarks></remarks>
    Private Sub CheckDisposed()
        If _isDisposed Then
            Throw New ObjectDisposedException("ScriptExecutor")
        End If
    End Sub

    ''' <summary>
    ''' To detect redundant calls
    ''' </summary>
    ''' <remarks></remarks>
    Private _isDisposed As Boolean = False

    Public Sub Dispose() Implements IDisposable.Dispose

        'Check to see if we've already done this
        If Not _isDisposed Then

            'TODO: Ditch other resources

            'We don't need to finalize this now
            GC.SuppressFinalize(Me)

            _isDisposed = True
        End If
    End Sub

    Protected Overrides Sub Finalize()
        Me.Dispose()
    End Sub
#End Region

End Class
